how to write electronic configurations